package org.zhenggn.invoke;

/**
 * Created by zhenggn on 2017/9/5.
 */
public class TimeAdvice implements Advice {

    long startTime;
    long endTime;
    @Override
    public void before() {
        startTime = System.nanoTime(); // 获取开始时间
    }

    @Override
    public void after() {
        endTime = System.nanoTime(); // 获取结束时间
    }
}
